const moment = require('moment')

const formatMessage = (username,text) => {
    return {
        username,
        text,
        time:moment(new Date()).format('HH:mm:ss')
    }
}
module.exports = formatMessage